package com.wuchengdong.web.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ToString
@TableName("notification")
@ApiModel("消息表（联系客服机能）")
public class Notification {

    @TableId
    @ApiModelProperty("消息ID")
    private Integer id;

    @ApiModelProperty("发送用户ID")
    private Integer fromId;

    @ApiModelProperty("接收用户ID")
    private Integer toId;

    @ApiModelProperty("消息内容")
    private String content;

    @ApiModelProperty("已读/未读")
    private Boolean isRead;

    @ApiModelProperty("创建日期")
    private LocalDateTime createdAt;
}
